package com.atguigu.srb.core.service;

import com.atguigu.srb.core.entity.Borrower;
import com.atguigu.srb.core.entity.vo.ApprovalForm;
import com.atguigu.srb.core.entity.vo.BorrowerDetailVo;
import com.atguigu.srb.core.entity.vo.BorrowerVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 借款人 服务类
 * </p>
 *
 * @author Atguigu
 * @since 2023-06-30
 */
public interface BorrowerService extends IService<Borrower> {

    void processData(String token, BorrowerVo borrowerVo);

    Integer getStatus(String token);

    Page<Borrower> listPage(Integer pageNum, Integer pageSize, String keyword);

    //根据borrowerId查询borrower的详情
    BorrowerDetailVo getDetail(Long borrowerId);
    //根据userId查询borrower的详情
    BorrowerDetailVo getDetailByUserId(Long userId);

    void approval(ApprovalForm approvalForm);
}
